package remote.controllers;

import remote.activities.R;
import remote.constants.IRequestTypes;
import android.app.Activity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;

public class FileBrowserController extends BaseController implements OnItemClickListener
{
	public final static String FILE_BROWSER_KEY = "key";
	
	public FileBrowserController(Activity activity)
	{
		super(activity);
	}

	@Override
	public void onItemClick(AdapterView<?> parent, View view, int position, long id)
	{
		TextView txtFile = (TextView)view.findViewById(R.id.file_browser_lblFile);
		_client.send(IRequestTypes.FILE_BROWSER, txtFile.getText().toString());
	}
}
